package com.cxx.purchasecharge.component.bean.usersecurity;

import java.util.List;

import com.cxx.purchasecharge.component.bean.BaseBean;
import com.cxx.purchasecharge.core.model.persistence.Authority;

public class AuthorityBean extends BaseBean
{
    private static final long serialVersionUID = 1L;

    private String id;
    private String name;
    /**
     * only for combotree display
     */
    private String text;
    private String comment;
    private Authority parent;
    private boolean enable = true;
    private boolean system = false;

    private List <ResourceBean> resourceBeans;
    private List <RoleBean> roleBeans;

    public String getId ()
    {
        return id;
    }

    public void setId (String id)
    {
        this.id = id;
    }

    public String getName ()
    {
        return name;
    }

    public void setName (String name)
    {
        this.name = name;
        this.text = name;
    }

    public String getText ()
    {
        return text;
    }

    public String getComment ()
    {
        return comment;
    }

    public void setComment (String comment)
    {
        this.comment = comment;
    }

    public Authority getParent ()
    {
        return parent;
    }

    public void setParent (Authority parent)
    {
        this.parent = parent;
    }

    public boolean isEnable ()
    {
        return enable;
    }

    public void setEnable (boolean enable)
    {
        this.enable = enable;
    }

    public boolean isSystem ()
    {
        return system;
    }

    public void setSystem (boolean system)
    {
        this.system = system;
    }

    public List <ResourceBean> getResourceBeans ()
    {
        return resourceBeans;
    }

    public void setResourceBeans (List <ResourceBean> resourceBeans)
    {
        this.resourceBeans = resourceBeans;
    }

    public List <RoleBean> getRoleBeans ()
    {
        return roleBeans;
    }

    public void setRoleBeans (List <RoleBean> roleBeans)
    {
        this.roleBeans = roleBeans;
    }
}
